package com.ruoyi.sales.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.ZcStock;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable;
import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;

/**
* 原料仓库对象 zc_store_material
*
* @author woo
* @date 2024-04-08
*/
@TableName("zc_store_material")
public class ZcStoreMaterial implements Serializable
{
private static final long serialVersionUID = 1L;

/** 原料仓库表id */
@TableId(value = "material_id",type = IdType.AUTO)
private Long materialId;

/** 仓库id */
@Excel(name = "仓库id")
private Long storeId;

/** 原料id */
@Excel(name = "原料id")
private Long stockId;

/** 原料数量 */
@Excel(name = "原料数量")
private String materialCount;

/** 原料价格 */
@Excel(name = "原料价格")
private Long materialPrice;

/** 采购人id */
@Excel(name = "采购人id")
private Long staffId;

/** 原料状态 */
private String status;

/** 逻辑删除 */
private Long del;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


    //仓库name
    @TableField(exist = false)
    private String storeName;

    //原料name
    @TableField(exist = false)
    private String stockName;

    //采购name
    @TableField(exist = false)
    private String staffName;

    //剩余仓储容量
    @TableField(exist = false)
    private String lastCount;

    public String getLastCount() {
        return lastCount;
    }

    public void setLastCount(String lastCount) {
        this.lastCount = lastCount;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setMaterialId(Long materialId)
{
this.materialId = materialId;
}

public Long getMaterialId()
{
return materialId;
}
public void setStoreId(Long storeId)
{
this.storeId = storeId;
}

public Long getStoreId()
{
return storeId;
}

    public Long getStockId() {
        return stockId;
    }

    public void setStockId(Long stockId) {
        this.stockId = stockId;
    }

    public void setMaterialCount(String materialCount)
{
this.materialCount = materialCount;
}

public String getMaterialCount()
{
return materialCount;
}
public void setMaterialPrice(Long materialPrice)
{
this.materialPrice = materialPrice;
}

public Long getMaterialPrice()
{
return materialPrice;
}
public void setStaffId(Long staffId)
{
this.staffId = staffId;
}

public Long getStaffId()
{
return staffId;
}
public void setStatus(String status)
{
this.status = status;
}

public String getStatus()
{
return status;
}
public void setDel(Long del)
{
this.del = del;
}

public Long getDel()
{
return del;
}

    @TableField(exist = false)
    private ZcStock stock;

    public ZcStock getStock() {
        return stock;
    }

    public void setStock(ZcStock stock) {
        this.stock = stock;
    }

@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("materialId", getMaterialId())
.append("storeId", getStoreId())
.append("stockId", getStockId())
.append("materialCount", getMaterialCount())
.append("materialPrice", getMaterialPrice())
.append("staffId", getStaffId())
.append("status", getStatus())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.append("del", getDel())
.toString();
}
}